package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.base.Storehouse;

public class StorehouseEvent extends DomainEvent<Storehouse> {
  public static final String STOREHOUSE_CREATED="storehouseCreatedEvent";

  public static StorehouseEvent buildStorehouseCreated(Object[] values){
    StorehouseEvent storehouseEvent = new StorehouseEvent();
    storehouseEvent.eventName=STOREHOUSE_CREATED;
    storehouseEvent.values=values;
    return storehouseEvent;
  }

  public static final String STOREHOUSE_DEL="storehouseDelEvent";

  public static StorehouseEvent buildStorehouseDel(Object[] values){
    StorehouseEvent storehouseEvent = new StorehouseEvent();
    storehouseEvent.eventName=STOREHOUSE_DEL;
    storehouseEvent.values=values;
    return storehouseEvent;
  }
}
